<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
 					
					MoneyDao moneyDao = new MoneyDao();
					List<Money> list = moneyDao.findAll();
			        System.out.println("查出的所有========"+list);
			        request.setAttribute("model", list);
%>

<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>参合缴费信息</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>

<!-- <style type="text/css">
.box{/*先制作一个盒子，然后搞一个边框能和上面的重叠，然后覆盖上去*/
			width: 698px;
			height: 28px;
			background: #fff;
			font-size: 14px;/*字体大小*/
			text-align: center;/*水平居中*/
			line-height: 20px;/*行高，上下居中*/
			border: 1px solid #C3c3c3;/*给盒子边框加上与表格相同的实线*/
			position: absolute;/*绝对定位于表格*/
			left: 340px;/*覆盖边框*/
		}
th {
    border: 2px solid #C3c3c3;
}
td {
    border: 2px solid #C3c3c3;
}
</style> -->

</head>
<body>
	<form method="post" action="" id="listform">
		<div class="panel admin-panel">
			<div class="panel-head">
				<strong class="icon-reorder">参合缴费信息</strong>
			</div>
			<div class="padding border-bottom">
				<ul class="search" style="padding-left:10px;">
					<li>搜索：</li>
					<li><input type="text" placeholder="请输入搜索关键字" name="familyholdername"
						class="input"
						style="width:250px; line-height:17px;display:inline-block" /> <a
						href="javascript:void(0)" class="button border-main icon-search"
						onclick="changesearch();"> 搜索</a></li>
				</ul>
			</div>
			<table class="table table-hover text-center" style="border: 1px solid #C3c3c3;">
			
						<!-- <div class="box">参合人员信息</div> -->
				<tr>	<!-- <th width="50">序号</th> -->
					<th width="50" style="text-align:center;height:60px;">&nbsp;</th>
					<th>姓名</th>
					<th>农合证号</th>
					<th>是否设置标准</th>
					<th>上次缴费时间</th>
					<th>有效年限</th>
					<th>是否已缴费</th>
					<th>缴费金额</th>
					<th>发票号</th>
					<th>操作人员</th>
					<!-- <th>操作</th> -->
				</tr>
				
				<%--循环方式不对，会重复输出 <%
					List<Money> flist=(List)request.getAttribute("model");
					int list = flist.size();
					for(int i=0;i<list;i++){				
				%> --%>
				<!-- 遍历循环后台传来的数据 -->
            	<c:forEach items="${model}" var="model">
				<tr>
				<%-- <td><%=(i+1) %></td> --%>
					<td><input type="checkbox" name="ids"
						value="${model.id}" /></td>
					<td>${model.name}</td>
					<td>${model.cmscode}</td>
					<td>${model.standard}</td>
					<td>${model.lasttime}</td>
					<td>${model.effectiveage}</td>
					<td>${model.pay}</td>
					<td>${model.aggregate}</td>
					<td>${model.invoicenumber}</td>
					<td>${model.operator}</td>
					<%-- <td><div class="button-group">
							<a class="button border-main" href="<%=path%>/system/MoneyServlet?m=come&id=${model.id}">
							<span class="icon-edit"></span> 修改</a>
							<a class="button border-main" href="<%=path%>/system/MoneyServlet?m=export&name=${model.name}">
							<span class="icon-upload"></span> 导出</a>
						</div></td> --%>
				</tr>
				
				</c:forEach>
				<%-- <% } %> --%>
			</table>
		</div>
	</form>
<script type="text/javascript">
function changesearch(){
	var url = '<%=path%>/system/MoneyServlet?m=find';
	// 替换form表单需要提交的url
	$('#listform').attr('action',url);
	// 提交form表单
	$('#listform').submit();
}
</script>
</body>
</html>
